package com.blb.ssm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.blb.ssm.dao.GoodsMaper;
import com.blb.ssm.entity.Goods;
import com.blb.ssm.service.ShopService;

@Service
public class ShopServiceImpl implements ShopService{

	@Autowired
	private GoodsMaper goodsMapper;
	
	@Transactional(rollbackFor=Exception.class)
	@Override
	public void add(Goods goods) {
		goodsMapper.add(goods);
	}

}
